
local qianxun = fk.CreateSkill {
  name = "lingling__qianxun",
  tags = { Skill.Compulsory },
}

Fk:loadTranslationTable{
  ["lingling__qianxun"] = "谦逊",
  [":lingling__qianxun"] = "锁定技，【顺手牵羊】和【动摇军心】对你无效。",
}

qianxun:addEffect(fk.PreCardEffect, {
  anim_type = "defensive",
  can_trigger = function(self, event, target, player, data)
    return player:hasSkill(qianxun.name) and data.to == player and
      table.contains({"snatch", "ling__snatch", "ling__waver_morale"}, data.card.name)
  end,
  on_use = function (self, event, target, player, data)
    data.nullified = true
  end,
})

return qianxun
